new Vue({
    el: '#app',
    created () {
        this.getProjectsList()
    },
    data () {
        return {
            projects: []
        }
    },
    methods: {
        getProjectsList() {
            this.$http.post('/projects/getProjectsList').then(res => {
                if (!res.data.code) {
                    this.projects = res.data.data
                }
            })
        }
    }
});